#!/bin/bash

use_percent=$(df -h | grep '/dev/mapper' | head | awk '{print $5}' | awk -F '%' '{print $1}')

if [ $use_percent -gt 85 ]; then
    python3 /opt/send_email.py 'title' "disk used percent: $use_percent, please fix it."
fi
